package com.wandian.notepad.adapter;


import android.view.View;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wandian.notepad.R;
import com.wandian.notepad.bean.NoteTypeBean;
import com.wandian.notepad.bean.NotepadClassifyBean;

/**
 * NotepadClassifyRecycleAdapter-适配器
 */
public class NotepadClassifyRecycleAdapter extends BaseQuickAdapter<NoteTypeBean, BaseViewHolder> {

    public NotepadClassifyRecycleAdapter(int layoutResId) {
        super(layoutResId);
    }


    @Override
    protected void convert(BaseViewHolder helper, NoteTypeBean item) {

        helper.setText(R.id.tv_type_name, item.getType()+"")
                .setText(R.id.tv_type_number, item.getCounts()+"");
        ImageView img_logo = helper.getView(R.id.iv_notepad_type);

    }


}
